package com.changfang.gold_man.common;

//枚举类返回码
public enum ResCode {
    /**
     * success成功返回
     * error失败返回
     */
    SUCCESS(200, "success"),
    ERROR(404, "error");
    private Integer code;
    private String msg;
    ResCode(Integer code, String msg) {
        this.code=code;
        this.msg=msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
